import rxAjax from '@/assets/js/ajax.js';

//KETTLE日志 api接口
export const SysKettleLogApi = {};

SysKettleLogApi.baseUrl= '/api-system/system/core/sysKettleLog';
SysKettleLogApi.exportUrl= SysKettleLogApi.baseUrl + '/listExport';

//查询列表
SysKettleLogApi.query=function (parameter) {
  var url= SysKettleLogApi.baseUrl + '/query';
  return rxAjax.postJson(url,parameter).then (res => {
    return res.result
  })
}

/**
* 获取单记录
* @param pkId
* @returns {*}
*/
SysKettleLogApi.get =function(pkId) {
  var url= SysKettleLogApi.baseUrl + '/get?pkId=' + pkId;
  return rxAjax.get(url);
}

//保存数据
SysKettleLogApi.save =function(parameter) {
  var url= SysKettleLogApi.baseUrl + '/save';
  return rxAjax.postJson(url,parameter);
}

//删除数据
SysKettleLogApi.del =function(parameter) {
  var url= SysKettleLogApi.baseUrl + '/del';
  return rxAjax.postUrl(url,parameter);
}

export  default SysKettleLogApi;

